import fetch from "./request.js";

// 查询
export function queryAdAreaList(data) {
  return fetch("/nb-pc/1.0.1/AdAreaService/queryAdAreaList", {
    method: "post",
    data: data,
  });
}
// 修改广告位
export function updateAdArea(data) {
  return fetch("/nb-pc/1.0.1/AdAreaService/updateAdArea", {
    method: "post",
    data: data,
    withLoading: true,
  });
}
// 查询广告属性列表
export function queryAdPropertyList(data) {
  return fetch("/nb-pc/1.0.1/AdAreaService/queryAdPropertyList", {
    method: "post",
    data: data,
    withLoading: true,
    headers:{
      "Content-Type":"application/json; charset=utf-8"
    },
  });
}
// 添加广告属性
export function addAdProperty(data) {
  return fetch("/nb-pc/1.0.1/AdAreaService/addAdProperty", {
    method: "post",
    data: data,
    withLoading: true,
  });
}
// 修改广告属性
export function updateAdProperty(data) {
  return fetch("/nb-pc/1.0.1/AdAreaService/updateAdProperty", {
    method: "post",
    data: data,
    withLoading: true,
  });
}
// 删除广告属性
export function deleteAdProperty(data) {
  return fetch("/nb-pc/1.0.1/AdAreaService/deleteAdProperty", {
    method: "post",
    data: data,
    withLoading: true,
    headers:{
      "Content-Type":"application/json; charset=utf-8"
    },
  });
}